package com.euond.accv.mdm.domain;

import java.util.*;
import java.math.BigDecimal;
import javax.persistence.*;
import java.io.Serializable;

import org.hibernate.annotations.DynamicInsert;
import com.alibaba.fastjson.annotation.JSONField;
import com.euond.common.domain.AbstractEntity;


@Entity
@Table(name="mdm_item")
@DynamicInsert //该注解会根据属性非空动态生成insert语句
public class MdmItem extends AbstractEntity<Integer> implements Serializable{
	private static final long serialVersionUID = 1L;
	
	/**
	 * 
	 */
	@Id
    @Column(name="id")
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Integer id;
    
	/**
	 * 
	 */
	@Column(name="item_no")
    private String itemNo;
    
	/**
	 * 
	 */
    @Column(name="item_code")
    private String itemCode;
    
	/**
	 * 
	 */
    @Column(name="item_name")
    private String itemName;
    
	/**
	 * 
	 */
    @Column(name="item_engname")
    private String itemEngname;
    
	/**
	 * 
	 */
    @Column(name="brand_no")
    private String brandNo;
    
	/**
	 * 
	 */
    @Column(name="category_no")
    private String categoryNo;
    
	/**
	 * 
	 */
    @Column(name="major_no")
    private String majorNo;
    
	/**
	 * 
	 */
    @Column(name="item_status")
    private String itemStatus;
    
	/**
	 * 
	 */
    @Column(name="advice_price")
    private BigDecimal advicePrice;
    
	/**
	 * 
	 */
    @Column(name="advice_cost")
    private BigDecimal adviceCost;
    
	/**
	 * 
	 */
    @Column(name="cost_taxrate")
    private BigDecimal costTaxrate;
    
	/**
	 * 
	 */
    @Column(name="sale_taxrate")
    private BigDecimal saleTaxrate;
    
	/**
	 * 
	 */
    @Column(name="item_spec")
    private String itemSpec;
    
	/**
	 * 
	 */
    @Column(name="normal_unit")
    private String normalUnit;
    
	/**
	 * 
	 */
    @Column(name="customer_no")
    private String customerNo;
    
	/**
	 * 
	 */
    @Column(name="status")
    private String status;
    
	/**
	 * 
	 */
    @Column(name="remarks")
    private String remarks;
    
	/**
	 * 
	 */
    @Column(name="creator")
    private String creator;
    
	/**
	 * 
	 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@Column(name="create_time")
    private Date createTime;
    
	/**
	 * 
	 */
    @Column(name="modifier")
    private String modifier;
    
	/**
	 * 
	 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@Column(name="modify_time")
    private Date modifyTime;
    
    
    
    public void setId(Integer id){
    	this.id = id;
    }
    public String getItemNo(){
    	return this.itemNo;
    }
    
    public void setItemNo(String itemNo){
    	this.itemNo = itemNo;
    }
    public String getItemCode(){
    	return this.itemCode;
    }
    
    public void setItemCode(String itemCode){
    	this.itemCode = itemCode;
    }
    public String getItemName(){
    	return this.itemName;
    }
    
    public void setItemName(String itemName){
    	this.itemName = itemName;
    }
    public String getItemEngname(){
    	return this.itemEngname;
    }
    
    public void setItemEngname(String itemEngname){
    	this.itemEngname = itemEngname;
    }
    public String getBrandNo(){
    	return this.brandNo;
    }
    
    public void setBrandNo(String brandNo){
    	this.brandNo = brandNo;
    }
    public String getCategoryNo(){
    	return this.categoryNo;
    }
    
    public void setCategoryNo(String categoryNo){
    	this.categoryNo = categoryNo;
    }
    public String getMajorNo(){
    	return this.majorNo;
    }
    
    public void setMajorNo(String majorNo){
    	this.majorNo = majorNo;
    }
    public String getItemStatus(){
    	return this.itemStatus;
    }
    
    public void setItemStatus(String itemStatus){
    	this.itemStatus = itemStatus;
    }
    public BigDecimal getAdvicePrice(){
    	return this.advicePrice;
    }
    
    public void setAdvicePrice(BigDecimal advicePrice){
    	this.advicePrice = advicePrice;
    }
    public BigDecimal getAdviceCost(){
    	return this.adviceCost;
    }
    
    public void setAdviceCost(BigDecimal adviceCost){
    	this.adviceCost = adviceCost;
    }
    public BigDecimal getCostTaxrate(){
    	return this.costTaxrate;
    }
    
    public void setCostTaxrate(BigDecimal costTaxrate){
    	this.costTaxrate = costTaxrate;
    }
    public BigDecimal getSaleTaxrate(){
    	return this.saleTaxrate;
    }
    
    public void setSaleTaxrate(BigDecimal saleTaxrate){
    	this.saleTaxrate = saleTaxrate;
    }
    public String getItemSpec(){
    	return this.itemSpec;
    }
    
    public void setItemSpec(String itemSpec){
    	this.itemSpec = itemSpec;
    }
    public String getNormalUnit(){
    	return this.normalUnit;
    }
    
    public void setNormalUnit(String normalUnit){
    	this.normalUnit = normalUnit;
    }
    public String getCustomerNo(){
    	return this.customerNo;
    }
    
    public void setCustomerNo(String customerNo){
    	this.customerNo = customerNo;
    }
    public String getStatus(){
    	return this.status;
    }
    
    public void setStatus(String status){
    	this.status = status;
    }
    public String getRemarks(){
    	return this.remarks;
    }
    
    public void setRemarks(String remarks){
    	this.remarks = remarks;
    }
    public String getCreator(){
    	return this.creator;
    }
    
    public void setCreator(String creator){
    	this.creator = creator;
    }
    public Date getCreateTime(){
    	return this.createTime;
    }
    
    public void setCreateTime(Date createTime){
    	this.createTime = createTime;
    }
    public String getModifier(){
    	return this.modifier;
    }
    
    public void setModifier(String modifier){
    	this.modifier = modifier;
    }
    public Date getModifyTime(){
    	return this.modifyTime;
    }
    
    public void setModifyTime(Date modifyTime){
    	this.modifyTime = modifyTime;
    }
    
    @Override
	public Integer getId() {
		// TODO Auto-generated method stub
		return this.id;
	}
}
